import request from '@/utils/request'

///字典
export function dictMatching (data) {
  return request({
   url: '/system/dict/data/type/'+ data,
    method: 'get',
  })
}

// 生产执行明细
export function listDetailReport(query) {
  return request({
    url: '/prs/product/report',
    method: 'get',
    params: query
  })
}


//  生产执行明细导出
export function exportDetailReport(query) {
  return request({
    url: '/prs/product/report/execl',
    method: 'get',
    params: query
  })
}

//  生产逾期明细
export function listOverdueReport(query) {
  return request({
    url: '/prs/order/overdue/report',
    method: 'get',
    params: query
  })
}



//  生产逾期明细导出
export function exportOverdueReport(query) {
  return request({
    url: '/prs/order/overdue/execl',
    method: 'get',
    params: query
  })
}

//  产量报表
export function listProduceReport(query) {
  return request({
    url: '/prs/product/produce/report',
    method: 'get',
    params: query
  })
}

// 查询产线列表
export function listBeltline(query) {
  return request({
    url: '/prs/beltline/list',
    method: 'get',
    params: query
  })
}


//  产量报表导出
export function exportProduceReport(query) {
  return request({
    url: '/prs/product/produce/report/export',
    method: 'get',
    params: query
  })
}

//  生产产量明细表
export function listOutputReport(query) {
  return request({
    url: '/prs/product/output',
    method: 'get',
    params: query
  })
}

//  生产产量明细表导出
export function exportOutputReport(query) {
  return request({
    url: '/prs/product/output/export',
    method: 'get',
    params: query
  })
}


//  生产入库明细表
export function listCheckinReport(query) {
  return request({
    url: '/prs/checkin/report',
    method: 'get',
    params: query
  })
}

//  生产入库明细表导出
export function exportCheckinReport(query) {
  return request({
    url: '/prs/checkin/report/export',
    method: 'get',
    params: query
  })
}

// 获取单据参数
export function billParameters(query) {
  return request({
    url: '/system/config/form',
    method: 'get',
    params: query
  })
}